let token = localStorage.token;
if (token) {
  // 发送请求到后端进行认证有效期
  $.ajaxSetup({
    url:'/Auth/token',
    headers: {
      Authorization: token,
    },
    error: function (err) {
      console.log(err);
      alert("已过有效期，请重新登录");
      location.href = "百度登录框.html";
    },
  });
}
